//
//  gtMapGeoCodeSearchHandle.h
//  zjkd
//
//  Created by app on 17/2/21.
//  Copyright © 2017年 gtexpress. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GTSendExpressInfomationModel.h"
#import <BaiduMapAPI_Map/BMKMapComponent.h>//引入地图功能所有的头文件
#import <BaiduMapAPI_Search/BMKSearchComponent.h>//引入检索功能所有的头文件
#import <BaiduMapAPI_Base/BMKTypes.h>

typedef enum : NSUInteger {
    gtMapGeoCodeSearchSuccess,
    gtMapGeoCodeSearchNoResult,
    gtMapGeoCodeSearchFailure,
} gtMapGeoCodeSearchCallBackType;

@protocol gtMapGeoCodeDelegate <NSObject>

- (void)geoCodeCallBackWithType:(gtMapGeoCodeSearchCallBackType)type andLocation:(CLLocationCoordinate2D )geoLocation;

@end
//typedef void (^mapGeoCodeCallBackBlock) (gtMapGeoCodeSearchCallBackType ,CLLocationCoordinate2D  coordinate);
@interface gtMapGeoCodeSearchHandle : NSObject

//@property (nonatomic,copy)mapGeoCodeCallBackBlock  geoCodeCallBackBlock;

@property (nonatomic,weak)id <gtMapGeoCodeDelegate>  geoDelegate;
- (void)startGeoSearchWithExpressInfoModel:(GTSendExpressInfomationModel *)model;


@end
